using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Portal.GUI.EditoralOffice.MainOffce.editnews
{
	public partial class SynchronizeNhuanBut : System.Web.UI.UserControl
	{
		static DateTime LastUpdate = DateTime.Now;
		protected void Page_Load(object sender, EventArgs e)
		{

			if (!IsPostBack && LastUpdate.AddMinutes(1).CompareTo(DateTime.Now) < 0)
			{
				ChannelVN.CoreBO.NewsHelper.SynchronizeNhuanBut();
				LastUpdate = DateTime.Now;
			}
		}
	}
}